package com.song.rbac.controller;

import com.song.rbac.common.CodeStatus;
import com.song.rbac.common.Result;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.media.Schema;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author TonySong
 * @date 2025/7/31 0031
 * @time 11:35
 */
@RestController
@RequestMapping("/hello")
public class HelloController {

    @GetMapping
    @Operation(summary = "测试接口")
//    @Parameter(schema = @Schema(implementation = Result.class)
    public Result hello(){
        return new Result(CodeStatus.SUCCESS);
    }
}
